savePlayer

  • function
 

Creates/updates the player on the server and when successful sets player to a new Player model. Fires a "saved" event.

edit.savePlayer(ev)

Creates/updates the player on the server and when successful sets player to a new Player model. Fires a "saved" event.

Parameters

  1. ev {Event}Optional

    A DOM Level 2 event that preventDefault will be called on.

Returns

{Promise<Player>}